package com.javasm.mingming.adminuser.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.javasm.mingming.adminuser.entity.AdminMenu;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 菜单(AdminMenu)表数据库访问层
 *
 * @author makejava
 * @since 2025-01-15 09:53:16
 */
public interface AdminMenuDao extends BaseMapper<AdminMenu> {

    @Select("SELECT m.* FROM admin_menu m ,rel_role_menu rel WHERE m.mid = rel.mid AND rel.rid = #{id}")
    List<AdminMenu> selectListByRid(Long id);
}

